#ifndef BINARY_FACTORY_H
#define BINARY_FACTORY_H
#include "Singleton.h"
#include "MemoryPoolFactory.h"

class Binary;

class BinaryFactory : public Singleton<BinaryFactory>
{

public:
	BinaryFactory();
	~BinaryFactory();


	VOID									Release();
	VOID									Init( DWORD dwSize );

	Binary*									Alloc();
	VOID									Free( Binary* pBinary);

protected:
	CMemoryPoolFactory<Binary>		        *m_pBinaryPool;


};



#endif